﻿@model Senac.Escola.Projeto.Models.Aluno

@{
    ViewBag.Title = "Create";
}

<h2>Criar</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Aluno</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nivel)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nivel)
            @Html.ValidationMessageFor(model => model.Nivel)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Usuario.Login)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Usuario.Login)
            @Html.ValidationMessageFor(model => model.Usuario.Login)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Usuario.Senha)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Usuario.Senha)
            @Html.ValidationMessageFor(model => model.Usuario.Senha)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CategoriaID, "Categoria")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CategoriaID", String.Empty)
            @Html.ValidationMessageFor(model => model.CategoriaID)
        </div>

        <p><p></p>
            <input class="btn btn-danger" type="submit" value="Criar" />
        </p>
    </fieldset>
}
